﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Domain.Entities;

namespace TodoApp.TMS_Contract
{
    /// <summary>
    /// 合同表
    /// </summary>
    public class TMS_Contracts : BasicAggregateRoot<Guid>
    { 
        /// <summary>
        /// 主键ID 
        /// </summary>
        [Column("Contract_Id")]
        public override Guid Id { get => base.Id;protected set=>base.Id=value; }
        /// <summary>
        /// 合同标题
        /// </summary>
        /// 
        [Required(ErrorMessage = "标题不能为空")]
        public string Contract_Title { get; set; }
        /// <summary>
        /// 户主负责人
        /// </summary>
        /// 
        [Required(ErrorMessage = "货主负责人不能为空")]
        public string Contract_Name { get; set; }
        /// <summary>
        /// 线路
        /// </summary>
        /// 
        [Required(ErrorMessage = "线路不能为空")]
        public int Contract_Line { get; set; }
        /// <summary>
        /// 货主单位
        /// </summary>
        /// 
        [Required(ErrorMessage = "货主单位不能为空")]
        public string Contract_Units { get; set; }
        /// <summary>
        /// 吨运价
        /// </summary>
        /// 
        [Required(ErrorMessage = "吨运价不能为空")]
        public decimal Contract_Price { get; set; }
        /// <summary>
        /// 包车条件吨位
        /// </summary>
        public decimal Contract_Chartered { get; set; }
        /// <summary>
        /// 包车金额
        /// </summary>
        public decimal Contract_balance { get; set; }
        /// <summary>
        /// 经办人
        /// </summary>
        /// 
        [Required(ErrorMessage = "经办人不能为空")]
        public string Contract_AttentionLine { get; set; }
        /// <summary>
        /// 签订时间
        /// </summary>
        /// 
        [Required(ErrorMessage = "签订时间不能为空")]
        public DateTime Contract_CreateDate { get; set; }
        /// <summary>
        /// 合同金额
        /// </summary>
        public decimal Contract_Money { get; set; }
        /// <summary>
        /// 合同说明
        /// </summary>
        public string Contract_Description { get; set; }
        /// <summary>
        /// 合同条款
        /// </summary>
        public string Contract_Terms { get; set; }
        /// <summary>
        /// 合同文本
        /// </summary>
        public string Contract_Text { get; set; }
        /// <summary>
        /// 合同类型
        /// </summary>
        public int Contract_Type { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateDate { get; set; }
        /// <summary>
        /// 状态
        /// </summary>
        public int Contract_State { get; set; }
        /// <summary>
        /// 审批人
        /// </summary>
        public Guid PeopleId { get; set; }
        /// <summary>
        /// 合同类别
        /// </summary>
        public int Contract_Category { get; set; }
    }
}
